home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / lib / ubiquity / target-config / 31brltty < prev    next >
Text File  |  2008-08-06  |  488b  |  17 lines

  1. #! /bin/sh
  2. set -e
  3.  
  4. [ ! -f /etc/default/brltty ] || . /etc/default/brltty
  5.  
  6. if egrep -q 'braille=ask|brltty' /proc/cmdline && [ -f /etc/brltty.conf ] && \
  7.    [ -e /target/etc/default/brltty ] && [ "$RUN_BRLTTY" = yes ]; then
  8.     mkdir -p /target/etc/default
  9.     if [ -e /target/etc/brltty.conf ]; then
  10.         mv /target/etc/brltty.conf /target/etc/brltty.conf.orig
  11.     fi
  12.     cp -a /etc/brltty.conf /target/etc/brltty.conf
  13.     sed -i -e 's/^RUN_BRLTTY=.*/RUN_BRLTTY=yes/' /target/etc/default/brltty
  14. fi
  15.  
  16. exit 0
  17.